import vue from '@vitejs/plugin-vue';
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
import Components from 'unplugin-vue-components/vite';
import { defineConfig } from 'vite';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    Components({
      resolvers: [AntDesignVueResolver({ importStyle: 'less' })],
    })
  ],
  css: {
    preprocessorOptions: {
          less: {
              modifyVars: {
                  'primary-color': 'grey',
                  'link-color': '#1DA57A',
                  'border-radius-base': '2px'
              },
              javascriptEnabled: true
          }
      }
  },
})
